package com.atguigu.dao;

import com.atguigu.domain.User;

/**
 * user dao interface
 * @author dl
 * @create 2020-04-18-11:03
 */
public interface UserDao  {
	/**
	 * get user by name and password
	 * @param user
	 * @return
	 */
	User getUserByNameAndPassword(User user);

	/**
	 * user register
	 * @param user
	 * @return boolean true:success false:failed
	 */
	boolean registerUser(User user);

	/**
	 * 判断是否存在该用户名
	 * @param username
	 * @return
	 */
	User existsName(String username);

}
